package cn.school.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.school.common.annotation.Excel;
import cn.school.common.core.domain.BaseEntity;

/**
 * 订单信息对象 bi_order_info
 *
 * @author ruoyi
 * @date 2023-12-15
 */
@Data
public class BiOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID唯一标识 */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 订单号 */
    @Excel(name = "订单号")
    private String mchPayOrderNo;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openid;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private Integer orderType;

    /** 订单对应的放入纸条id */
    @Excel(name = "订单对应的放入纸条id")
    private Long paperId;

    /** 订单对应的抽取的纸条id集合 */
    @Excel(name = "订单对应的抽取的纸条id集合")
    private String paperIds;

    /** 纸条数量 */
    @Excel(name = "纸条数量")
    private Integer paperNum;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payAmount;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private Integer payStatus;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 微信支付单号 */
    @Excel(name = "微信支付单号")
    private String wxPayOrderNo;

    /** 支付成功时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付成功时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date paySucTime;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long recommendShopId;

    /** 店铺电话 */
    @Excel(name = "店铺电话")
    private String recommendShopPhone;

    /** 抽取纸条学校Id限制 */
    @Excel(name = "抽取纸条学校Id限制")
    private Long cqSchoolId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodId", getGoodId())
            .append("goodName", getGoodName())
            .append("mchPayOrderNo", getMchPayOrderNo())
            .append("openid", getOpenid())
            .append("orderType", getOrderType())
            .append("paperId", getPaperId())
            .append("paperIds", getPaperIds())
            .append("paperNum", getPaperNum())
            .append("payAmount", getPayAmount())
            .append("payStatus", getPayStatus())
            .append("shopId", getShopId())
            .append("wxPayOrderNo", getWxPayOrderNo())
            .append("paySucTime", getPaySucTime())
            .append("recommendShopId", getRecommendShopId())
            .append("recommendShopPhone", getRecommendShopPhone())
                .append("cqSchoolId", getCqSchoolId())
            .toString();
    }
}
